home *** CD-ROM | disk | FTP | other *** search
- gview.onFirefoxLoad = function(event) {
- document.getElementById("contentAreaContextMenu")
- .addEventListener("popupshowing", function (e){ gview.showFirefoxContextMenu(e); }, false);
- };
-
- gview.showFirefoxContextMenu = function(event) {
- // show or hide the menuitem based on what the context menu is on
- document.getElementById("context-gview").hidden = !gContextMenu.onLink;
- };
-
- window.addEventListener("load", gview.onFirefoxLoad, false);
-